<template>
  <div>
     
     <MyForm ref="myform"> </MyForm>

     <button @click.prevent="submit">提交</button>
   </div>
</template>
 
<script>
import MyForm from './MyForm.vue'
export default {
  
  components: {
    MyForm
  },

  data() {
    return {};
  },
  
  methods: {
    submit() {
      this.$refs.myform.sonSubmit()
    }
  }
};
</script>

<style scoped>
     
</style>